﻿<form class="form-horizontal" role="form" name="editForm" ng-show="isVisible" ng-controller="editCtrl" show-validation>
    <div class="form-group" ng-if="item.Id">
        <label for="id" class="col-sm-2 control-label">Id</label>
        <div class="col-sm-3">
            <div class="form-control-static">{{item.Id}}</div>
        </div>
    </div>
    <div class="form-group">
        <label for="name" class="col-sm-2 control-label">UserName</label>
        <div class="col-sm-3">
            <input type="text" class="form-control" id="UserName" ng-model="item.UserName" required />
        </div>
    </div>
    <div class="form-group" ng-if="showPasswordField">
        <label for="name" class="col-sm-2 control-label">Password</label>
        <div class="col-sm-3">
            <input type="password" class="form-control" id="Email" ng-model="item.Password" required />
        </div>
    </div>
    <div class="form-group">
        <label for="name" class="col-sm-2 control-label">Email</label>
        <div class="col-sm-3">
            <input type="text" class="form-control" id="Email" ng-model="item.Email" />
        </div>
    </div>
    <div class="form-group">
        <label for="name" class="col-sm-2 control-label">PhoneNumber</label>
        <div class="col-sm-3">
            <input type="text" class="form-control" id="PhoneNumber" ng-model="item.PhoneNumber" />
        </div>
    </div>
    <div class="form-group" ng-if="item.LockoutEndDateUtc">
        <label for="name" class="col-sm-2 control-label">LockoutEndDateUtc</label>
        <div class="col-sm-3">
            <div class="form-control-static">{{item.LockoutEndDateUtc}}</div>
        </div>
    </div>
    <div class="form-group" ng-if="item.LockoutEnabled">
        <label for="name" class="col-sm-2 control-label">LockoutEnabled</label>
        <div class="col-sm-3">
            <input type="text" class="form-control" id="LockoutEnabled" ng-model="item.LockoutEnabled">
        </div>
    </div>
    <div class="form-group" ng-if="item.AccessFailedCount">
        <label for="name" class="col-sm-2 control-label">AccessFailedCount</label>
        <div class="col-sm-3">
            <div class="form-control-static">{{item.AccessFailedCount}}</div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-3">
            <button type="submit" class="btn btn-default" ng-click="save()">Save</button>
        </div>
    </div>
</form>
